﻿package com.fairytask.engine.define
{
	import flash.filters.BitmapFilterQuality;
	import flash.filters.BlurFilter;
	import flash.filters.ColorMatrixFilter;
	import flash.filters.DropShadowFilter;
	import flash.filters.GlowFilter;

	/**
	 * 系统公用滤镜定义 
	 * @author Navy
	 */	
	public class Filter extends Object
	{
		public static var npcFilterElements_array:Array = [1, 0, 0, 0, 40, 0, 1, 0, 0, 40, 0, 0, 1, 0, 40, 0, 0, 0, 1, 0];
		public static var weaponFilterElements_array:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
		public static var deleteCharFilter:Array = [0.5, 0, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0, 1, 0];
		public static var DELETED_FILTER:ColorMatrixFilter = new ColorMatrixFilter(deleteCharFilter);
		public static var WEAPON_FILTER:ColorMatrixFilter = new ColorMatrixFilter(weaponFilterElements_array);
		public static const CHAR_SELECT_FILTER:GlowFilter = new GlowFilter(16777077, 1, 8, 8, 3);
		public static const COMMON_LABEL_FILTER:GlowFilter = new GlowFilter(5778956, 1, 2, 2, 10, 1);
		public static const COMMON_TEXT_FILTER:GlowFilter = new GlowFilter(0, 1, 2, 2, 6, 1);
		public static const INNER_TEXT_FILTER:GlowFilter = new GlowFilter(0, 1, 1, 1, 8, 1);
		public static const COMMON_LIST_FILTER:GlowFilter = new GlowFilter(3407872, 1, 2, 2, 10);
		public static const MAP_NAME_FILTER:GlowFilter = new GlowFilter(5910032, 1, 2, 2, 10);
		public static const MAP_NAME_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const MAP_LEVEL_FILTER:GlowFilter = new GlowFilter(791357, 1, 2, 2, 10);
		public static const MAP_LEVEL_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 791357, 1, 2, 2, 10, BitmapFilterQuality.LOW);
		public static const GREEN_LABEL_FILTER:GlowFilter = new GlowFilter(2837270, 1, 2, 2, 10, 1);
		public static const PORTRAIT_FILTER:GlowFilter = new GlowFilter(16777077, 1, 8, 8, 3);
		public static const NPC_FILTER:ColorMatrixFilter = new ColorMatrixFilter(npcFilterElements_array);
		public static const NPC_ACTION_TEXT_FILTER:GlowFilter = new GlowFilter(16751934, 1, 2, 2, 10, 1);
		public static const PRIVATE_CHAT_NAME_FILTER:GlowFilter = new GlowFilter(5057562, 1, 2, 2, 10, 1);
		public static const PLAYER_NAME_FILTER:GlowFilter = new GlowFilter(539438, 1, 2, 2, 10, 1);
		public static const CHAR_NAME_FILTER:GlowFilter = new GlowFilter(537095, 1, 2, 2, 10, 1);
		public static const PET_NAME_FILTER:GlowFilter = new GlowFilter(2432567, 1, 2, 2, 10, 1);
		public static const NPC_NAME_FILTER:GlowFilter = new GlowFilter(5122825, 1, 2, 2, 10, 1);
		public static const STALL_UNBROWSERED_FILTER:GlowFilter = new GlowFilter(5252608, 1, 2, 2, 10, 1);
		public static const STALL_BROWSERED_FILTER:GlowFilter = new GlowFilter(5252608, 1, 2, 2, 10, 1);
		public static const STALL_FAV_FILTER:GlowFilter = new GlowFilter(1459030, 1, 2, 2, 10, 1);
		public static const HOT_SLOT_INDEX_FILTER:GlowFilter = new GlowFilter(5249030, 1, 2, 2, 10, 1);
		public static const BUTTON_TEXT_FILTER:GlowFilter = new GlowFilter(5000268, 1, 2, 2, 10, 1);
		public static const BUTTON_DISABLED_FILTER:GlowFilter = new GlowFilter(6710886, 1, 2, 2, 10, 1);
		public static const RMBSHOP_TEXT_FILTER:GlowFilter = new GlowFilter(6703396, 1, 2, 2, 10, 1);
		public static const RMBSHOP_ITEM_FILTER:GlowFilter = new GlowFilter(3087104, 1, 2, 2, 10, 1);
		public static const MAP_POS_FILTER:GlowFilter = new GlowFilter(3355443, 1, 2, 2, 10, 1);
		public static const NPC_COMMON_FILTER:GlowFilter = new GlowFilter(791357, 1, 2, 2, 10, 1);
		public static const NPC_BUSINESS_FILTER:GlowFilter = new GlowFilter(5845769, 1, 2, 2, 10, 1);
		public static const NPC_FUNC_FILTER:GlowFilter = new GlowFilter(3869956, 1, 2, 2, 10, 1);
		public static const NPC_TRANSPORT_FILTER:GlowFilter = new GlowFilter(1323527, 1, 2, 2, 10, 1);
		public static const NPC_GATHER_FILTER:GlowFilter = new GlowFilter(265787, 1, 2, 2, 10, 1);
		public static const PET_TYPE_FILTER:GlowFilter = new GlowFilter(3407872, 1, 2, 2, 10, 1);
		public static const GROUP_LEVEL_FILTER:GlowFilter = new GlowFilter(5778956, 1, 2, 2, 10, 1);
		public static const GROUP_NAME_FILTER:GlowFilter = new GlowFilter(472875, 1, 2, 2, 10, 1);
		public static const WM_TITLE_FILTER:GlowFilter = new GlowFilter(5383171, 1, 2, 2, 10, 1);
		public static const WM_LEVEL_FILTER:GlowFilter = new GlowFilter(791357, 1, 2, 2, 10, 1);
		public static const WM_TYPE_FILTER:GlowFilter = new GlowFilter(3869956, 1, 2, 2, 10, 1);
		public static const WM_DESC_FILTER:GlowFilter = new GlowFilter(3355443, 1, 2, 2, 10, 1);
		public static const PET_APTITUDE_FILTER:GlowFilter = new GlowFilter(3355443, 1, 2, 2, 10, 1);
		public static const SECURE_PWD_FILTER:GlowFilter = new GlowFilter(9641472, 1, 2, 2, 10, 1);
		public static const SECURE_PWD_TEL_FILTER:GlowFilter = new GlowFilter(5778956, 1, 2, 2, 10, 1);
		public static const PET_SKILL_HUASHENG_FILTER:GlowFilter = new GlowFilter(9641472, 1, 2, 2, 10, 1);
		public static const SELECT_HUASHENG_FILTER:GlowFilter = new GlowFilter(5778956, 1, 2, 2, 10, 1);
		public static const EXP_FILTER:GlowFilter = new GlowFilter(2837270, 1, 2, 2, 10, 1);
		public static const BAG_TEXT_FILTER:GlowFilter = new GlowFilter(5778956, 1, 2, 2, 10, 1);//黑色阴影
		public static const GROUPSEARCH_TEXT_FILTER:GlowFilter = new GlowFilter(4987651, 1, 2, 2, 10, 1);
		public static const FLAY_FLAG_DURABLE_FILTER:GlowFilter = new GlowFilter(5778956, 1, 2, 2, 10, 1);
		public static const GROUPSEARCH_TEXT_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const NPC_NAME_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 10, 10, 1, BitmapFilterQuality.LOW);
		public static const GROUP_LEVEL_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const GROUP_NAME_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const PET_APTITUDE_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const COMMON_LABEL_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const PET_SKILL_HUASHENG_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 1, BitmapFilterQuality.LOW);
		public static const SELECT_HUASHENG_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 1, BitmapFilterQuality.LOW);
		public static const EXP_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 1, BitmapFilterQuality.LOW);
		public static const BAG_TEXT_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const FLAY_FLAG_DURABLE_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const TITLE_SHADOW:DropShadowFilter = new DropShadowFilter(0, 45, 0, 1, 6, 6, 0.5, BitmapFilterQuality.LOW);
		public static const CARD_SELECTED:GlowFilter = new GlowFilter(0xf1e9ad,0.8,15,15,3,1);//卡牌选中滤镜
	  	public static const PET_QUALITY:GlowFilter   = new GlowFilter(0x000000,1,2,2,4,BitmapFilterQuality.HIGH);//宠物资质属性文字	
		public static const FRAME_SELECTED:GlowFilter= new GlowFilter(0xffcc33,1,5,5,3);//边框选中滤镜(如：技能)
		//灰色
		public static const GRAY:ColorMatrixFilter=new ColorMatrixFilter(new Array(0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0));
		public static const BLUR_SPRITE:BlurFilter = new BlurFilter(10,10, BitmapFilterQuality.LOW);
		//白色
		public static const WHITE_GLOW	:GlowFilter = new GlowFilter(0xffffff, 1, 2, 2, 10, 1);
		//黄色发光
		public static const YELLOW_GLOW	:GlowFilter = new GlowFilter(0xffcc33, 1,5,5, 3, 1);
		//黄色内发光（选中效果)
		public static const YELLOW_INNER	:GlowFilter = new GlowFilter(0xffff00,1,6,6,10,1,true);
		
		public function Filter()
		{
			return;
		}
	}
}
